import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'statusToText'
})
export class statusToTextPipe implements PipeTransform {
  transform(value: number): string {
    switch (value) {
      case 0:
        return '未开始审核';
      case 1:
        return '审核中';
      case 2:
        return '审核通过';
      case 3:
        return '已驳回';
      default:
        return '未知状态';
    }
  }
}
